Improve hashing quality when configured --with-wide-int.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Jul 2011 00:51:25 +0000 (17:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Jul 2011 00:51:25 +0000 (17:51 -0700)
commit2b502e280f6e3c013ae9c758ee666346aaf2381b
treea15d69392faf6b114e83b986bc0137e579bbb9a4
parent94ef8d20b0ad9ed7fabc1f5ed9f2f26deed2af26
Improve hashing quality when configured --with-wide-int.

* fns.c (hash_string): New function, taken from sxhash_string.
Do not discard information about ASCII character case; this
discarding is no longer needed.
(sxhash-string): Use it.  Change sig to match it.  Caller changed.
* lisp.h: Declare it.
* lread.c (hash_string): Remove, since we now use fns.c's version.
The fns.c version returns a wider integer if --with-wide-int is
specified, so this should help the quality of the hashing a bit.
src/ChangeLog
src/fns.c
src/lisp.h
src/lread.c